package com.lovo.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName t_order
 */
@TableName(value ="t_order")
@Data
public class Order implements Serializable {
    /**
     * 
     */
    @TableId(value = "o_id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "o_number")
    private String number;

    /**
     * 
     */
    @TableField(value = "o_u_id")
    private Integer userId;

    /**
     * 
     */
    @TableField(value = "o_price")
    private Double price;

    @TableField(exist = false)
    private List<OrderProduct> orderProducts;
    /**
     * 
     */
    @TableField(value = "o_create_time")
    private LocalDateTime createTime;

    /**
     * 
     */
    @TableField(value = "o_update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}